package com.game.framework.common;

public enum FishTypeEnum {
    NO_FISH(0,"无鱼"),
    LOW_SHRIMP(1,"小虾"),
    MIN_FISH(2,"小鱼"),
    MID_FISH(3,"中鱼"),
    MAX_FISH(4,"大鱼"),
    STD_FISH(5,"标鱼");

    private final int type;
    private final String desc;

    FishTypeEnum(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }


    public int getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }


    public static FishTypeEnum get(Integer type) {
        switch (type) {
            case 1:
                return LOW_SHRIMP;
            case 2:
                return MIN_FISH;
            case 3:
                return MID_FISH;
            case 4:
                return MAX_FISH;
            case 5:
                return STD_FISH;
            case 0:
            default:
                return NO_FISH;
        }
    }

    public static String getDesc(Integer type) {
        switch (type) {
            case 1:
                return LOW_SHRIMP.desc;
            case 2:
                return MIN_FISH.desc;
            case 3:
                return MID_FISH.desc;
            case 4:
                return MAX_FISH.desc;
            case 5:
                return STD_FISH.desc;
            case 0:
            default:
                return NO_FISH.desc;
        }
    }
}
